<template>
	<view>
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				workid: '',
				url: ''
			}
		},
		onLoad(options) {
			var workid = options.workid
			var workCompleted = options.workCompleted
			var title = options.title
			uni.setNavigationBarTitle({
				title: title
			})
			let token = uni.getStorageSync(this.o2.config.tokenKey);
			let tokenName = uni.getStorageSync(this.o2.config.tokenNameKey);
			if (!workCompleted) {
				this.url = this.o2.Actions.getWebBaseUrl() + '/x_desktop/workmobilewithaction.html?workid='+workid+'&'+tokenName+'='+token+'#wechat_redirect';
			}else {
				this.url = this.o2.Actions.getWebBaseUrl() + '/x_desktop/workmobilewithaction.html?workcompletedid='+workCompleted+'&'+tokenName+'='+token+'#wechat_redirect';
			}
			
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
